package com.wayne.test;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

public class Main {
    public static void main(String[] args) {
        BCryptPasswordEncoder encode = new BCryptPasswordEncoder();
        boolean matches = encode.matches("e10adc3949ba59abbe56e057f20f883e","$2a$10$uO.IvA6VpdvDA0M4iV3FbuwNzjMhuBmP0W44sAbpXgNALXVea3k/i");
        System.out.println(matches);
        System.out.println(encode.encode("e10adc3949ba59abbe56e057f20f883e"));
    }
}
